Companion
object Companion
Contains declarations for holding or building a PositiveInt.
Properties
Link copied to clipboard
The maximum value a PositiveInt can have.
Link copied to clipboard
The minimum value a PositiveInt can have.
Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
The range of values a PositiveInt can have.
Functions
Link copied to clipboard
Creates a PositiveInt from the specified number, which may involve rounding or truncation, or throws an IllegalArgumentException if the number is less than zero.
Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_0)
Creates a PositiveInt from the specified number, which may involve rounding or truncation, or returns null
if the number is less than zero.
Link copied to clipboard
Returns a random PositiveInt.